package com.mxwl.cbg.common.model.mapper;

import com.mxwl.cbg.common.model.es.ESRoleModel;
import com.mxwl.cbg.common.model.source.RoleSourceModel;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RoleMapper {
    RoleMapper INSTANCE = Mappers.getMapper(RoleMapper.class);
    void updateESRoleFromRole(@MappingTarget ESRoleModel esRole, RoleSourceModel role);
}
